<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<style>
.fui-icon-group .fui-icon-col {
    margin: 0.1rem 0;
}
.fui-header:after {
	border-bottom: 0 solid #D9D9D9;
}
.fui-searchbar {padding-top:0.3rem;padding-bottom:0.3rem;margin-top:-2rem;height:auto;border-top-right-radius:1rem;border-top-left-radius:1rem;}
.searchbar .search-input input {
    height: 1.6rem;
}
.search-input i {
    line-height: 1.7rem;
}
.jylabels {
    display: inline;
    padding: 0 0.5rem;
    margin: 0.2rem;
    font-size: 0.55rem;
    line-height: 1.1rem;
    text-align: center;
    border-radius: 0.6rem;
}
.yuyue-duan {background:#fff;border: 0 solid #fff;border-radius: 4px;padding:0.1rem;margin:0.25rem 0.1rem;height:auto;width:auto;font-size:0.6rem;text-align:center}
.fui-header a.back:before {
	border-color: #fff
}
.fui-header a.back2:before {
	content: " ";
	display: inline-block;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	height: 0.5rem;
	width: 0.5rem;
	border-width: 0 0 2px 2px;
	border-color: #666;
	border-style: solid;
	position: relative;
	top:0;
}
.fui-icon-group .fui-icon-col .text {
    color: #999;
}
.fui-icon-group .fui-icon-col .text.active{
    color:red
}
.fui-list-inner .sorting {
    width: .2rem;
    height: .2rem;
    position: relative;
}
.fui-list-inner .sorting .icon {
    font-size: 0.85rem;
    position: absolute;
    -webkit-transform: scale(0.6);
    -ms-transform: scale(0.6);
    transform: scale(0.6);
}
.fui-list-inner .sorting .fa {
    font-size: 0.85rem;
    position: absolute;
    -webkit-transform: scale(0.6);
    -ms-transform: scale(0.6);
    transform: scale(0.6);
}
.fui-list-inner.desc .sorting .sanjiao1 {
    color: red
}

.fui-list-inner.asc .sorting .sanjiao2 {
    color: red
}
.fui-list-inner .sorting .icon-sanjiao1 {
    top: .15rem;
    left: 0;
}

.fui-list-inner .sorting .icon-sanjiao2 {
    top: -.15rem;
    left: 0;
}

.fui-list-inner.desc .sorting .icon-sanjiao1 {
    color: #ef4f4f
}

.fui-list-inner.asc .sorting .icon-sanjiao2 {
    color: #ef4f4f
}
.fui-goods-group.block .fui-goods-item .image {
	border-radius:0;
}
</style>
<div class="fui-page fui-page-current page-goods-list" ng-if="pagedata.op=='main'">
	<div class="searchtop" style="height: 4rem">
	<div class="fui-header">
		<div class="fui-header-input">
			<form method="post">
				<div class="searchbar searchbar-active" style="padding:0;margin:0 0.5rem;border-bottom: 1px solid #333">
					<div class="search-input">
						<input type="search" id="search" style="background:none;padding:0.3rem 0;height:2rem" ng-model="pagedata.params.keyword" placeholder="输入关键字..." value="">
						<span ng-click="access_json('jy_tiffany/goods.index//keyword='+pagedata.params.keyword)" class="icon jinyunicon icon-search" style="font-size: 0.8rem;position: absolute;right:0.5rem;top:0.5rem"></span>
					</div>
				</div>
			</form>
		</div>
	</div>
		<div class="fui-cellone" style="margin-top: 2.2rem;background: #fff;padding: 0.5rem;">
			<div class="fui-cellone-info">当前显示{{pagedata.list.length || 0}}个结果</div>
			<div class="fui-cellone-remark noremark">
				<span style="margin-left:0.3rem;font-size: 0.75rem;color:#333" ng-click="pagedata.paramstype=4;pagedata.isshowsearch=1;"><i class="icon icon-productfeatures"></i>筛选</span>
				<span ng-click="pagedata.paramstype=1;pagedata.isshowsearch=1;" style="margin-left:0.3rem;font-size: 0.75rem;color:#333"><i class="icon icon-filter"></i> 排序</span>
			</div>
		</div>
	</div>
<div class="fui-content" style="margin-top:4.5rem">
	<div class='fui-content-inner'>
		<div ng-if="!pagedata.loading && (!pagedata.list || pagedata.list.length<1)" class='content-empty' style="margin-top:0">
			<i class='icon icon-sousuo1'></i><br/>暂时没有任何商品
		</div>
		<div ng-include="sys_html('shop/_goodstwo')"></div>
	    <div id="loading_show" class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
</div>
<div class="fui-page fui-page-current page-goods-list" style="background: #fff;" ng-if="pagedata.op=='search'">
	<div class="fui-header">
			<div class="fui-header-input">
				<form method="post">
						<div class="searchbar searchbar-active" style="padding:0;margin:0 0.5rem;border-bottom: 1px solid #333">
						<div class="search-input">
							<input type="search" id="search" style="background:none;padding:0.3rem 0;height:2rem" ng-model="pagedata.params.keyword" placeholder="输入关键字..." value="">
							<span ng-click="access_json('jy_tiffany/goods.index//keyword='+pagedata.params.keyword)" class="icon jinyunicon icon-search" style="font-size: 0.8rem;position: absolute;right:0.5rem;top:0.5rem"></span>
						</div>
						</div>
				</form>
			</div>
	</div>
	<div class="fui-content" style="margin-top:3rem;background:#fff">
				<div class="weui_cells_title bold" style="font-size: 0.7rem;"><i class="icon jinyunicon icon-hot" style="font-size: 0.7rem;"></i> 热搜</div>
				<div class="weui_cells">
					<div class="row margin0" style="margin-bottom:15px;line-height:">
							<div ng-repeat="(k,v) in pagedata.searchkeyword" class="jylabels jylabel-gray" style="border-radius:0;line-height: 2rem" ng-click="pagedata.params.keyword=v">{{v}}</div>
					</div>
				</div>
	</div>
</div>
<div ng-include="sys_html('goods/common/_search','','','jy_tiffany')"></div>
<div ng-include="sys_html('common/_gotop',true)"></div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<script>
scope.pagedata.showfilter=function(){
		$('#showfilter').modal();
}
scope.pagedata.getmerchs=function(item){
	var keyword=scope.pagedata.params.keyword?scope.pagedata.params.keyword:'';
	scope.get('jy_weishop/get_data/getmerchs/limit=5&keyword='+keyword,function(res){
		scope.pagedata.merchlist=res.list
		scope.pagedata.merchsloading=false
		scope.$evalAsync();
	});
}
scope.pagedata.getlist=function(order,showtype){
	if(order){
		scope.pagedata.params.order = order;
	}
	if(scope.pagedata.params.keyword){
		scope.pagedata.getmerchs();
	}
	scope.pagedata.paramstype=showtype;
	scope.pagedata.isshowsearch=showtype;
	scope.tool.get_list('jy_weishop/goods.index/getlist/',true);
	scope.$evalAsync();
}

//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>